﻿namespace IndirectX.Shaders
{
    public class InstrucitonCodeToken : ShaderCodeToken
    {
        public OpCode OpCode;
        public uint Length;
        public bool IsExtended;
        
       
        public override void Parse(uint data)
        {
            OpCode = (OpCode)BitExtensions.DecodeValue(data, 0, 10);
            Length = BitExtensions.DecodeValue(data, 24, 30);
            IsExtended = (BitExtensions.DecodeValue(data, 31, 31) == 1);
        }

    }
}